package com.hwua.service.impl;

import com.hwua.dao.CourseDao;
import com.hwua.dao.TeacherDao;
import com.hwua.dao.impl.CourseDaoImpl;
import com.hwua.dao.impl.TeacherDaoImpl;
import com.hwua.entity.Course;
import com.hwua.entity.Teacher;
import com.hwua.service.CourseService;
import com.hwua.service.TeacherService;

import java.util.List;

/**
 * @author CQY
 */
public class CourseServiceImpl implements CourseService{
CourseDao dao=new CourseDaoImpl();

    @Override
    public List<Course> findAll() {
        return dao.findAll();
    }

    @Override
    public int save(Course course) {
        return dao.save(course);
    }

    @Override
    public int delete(String id) {
        return dao.delete(id);
    }

    @Override
    public int update(Course course) {
        return dao.update(course);
    }

    @Override
    public List<Course> findSearch(String keyword) {
        return dao.findSearch(keyword);
    }
}
